package codingforgreat.class36;

public class Class10_StoneGameIV {
    public boolean whoWin(int n){
        if(n == 0){
            return false;
        }
        for(int i = 1;i * i <= n;i++){
            if(!whoWin(n - i * i)){
                return true;
            }
        }
        return false;
    }
}
